import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
	  loading:false,//加载层状态
  },
  getters: {
	  getLoading:(state)=>state.loading,//获取加载层状态
  },
  mutations: {
	  setLoading:(state,data)=>state.loading = data
  },
  actions: {
  },
  modules: {
  }
})
